import unittest
from tools.tools import open_app,ConfigHandler
class BaseCase(unittest.TestCase):
    """用例基类"""
    def setUp(self):
        """预开启下厨房页面"""
        #准备数据
        application="xiachufang-app"
        #步骤
        ch=ConfigHandler()
        #添加下厨房的信息
        capabilities=ch.read_capabilities(application)
        # 打开下厨房的页面
        self.driver=open_app(capabilities)
        self.driver.wait_activity(".activity.home.HomeActivity",30)

